@{
    Layout=null;
    
}
@using MvcSort.Models
@model Book
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            border: 1px solid yellow;
            width: 200px;
        }
    </style>
</head>
<body>
    <div>
        <table>
            @if (Model==null)
            {
                <tr hidden>
                <th>id</th>
                <td><input type="text" name="id" id="" value="0"></td>
            </tr>
            <tr>
                <th>名称</th>
                <td><input type="text" name="name" id=""></td>
            </tr>
            <tr>
                <th>isbn</th>
                <td><input type="text" name="isbn" id=""></td>
            </tr>
            <tr>
                <td><input type="button" name="" id="btnbc" value="保存"></td>
                <td><input type="button" name="" id="btnqx" value="取消"></td>
            </tr>
            }else
            {
                <tr hidden>
                <th>id</th>
                <td><input type="text" name="id" id="" value="@Model.Id" ></td>
            </tr>
            <tr>
                <th>名称</th>
                <td><input type="text" name="name" id="" value="@Model.BookName"></td>
            </tr>
            <tr>
                <th>isbn</th>
                <td><input type="text" name="isbn" id="" value="@Model.ISBN"></td>
            </tr>
            <tr>
                <td><input type="button" name="" id="btnbc" value="保存"></td>
                <td><input type="button" name="" id="btnqx" value="取消"></td>
            </tr>
            }
        </table>
    </div>
        <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/js/base.js"></script>
</body>
</html>